package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车间任务对象 wksp_task
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class WkspTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车间任务id */
    private Long id;

    /** 车间任务编号 */
    @Excel(name = "车间任务编号")
    private String sn;

    /** 领料id */
    private Long materId;

    /** 产品id */
    private Long proId;

    /** 开工日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开工日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startWork;


    /** 产品名称 */
    private String proName;

    /** 产品编码 */
    private String proSn;

    /** 车间任务名称 */
    @Excel(name = "车间任务名称")
    private String name;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private Integer state;

    /** 已生产数量 */
    @Excel(name = "已生产数量")
    private Long gbtNum;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;

    /** 逻辑删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    /** 计划生产数量 */
    private Long planNum;

    public void setPlanNum(Long planNum) {this.planNum = planNum;}

    public Long getPlanNum() {return planNum;}

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setMaterId(Long materId) 
    {
        this.materId = materId;
    }

    public Long getMaterId() 
    {
        return materId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }


    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProSn() {
        return proSn;
    }

    public void setProSn(String proSn) {
        this.proSn = proSn;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setGbtNum(Long gbtNum) 
    {
        this.gbtNum = gbtNum;
    }

    public Long getGbtNum() 
    {
        return gbtNum;
    }
    public void setOrderSn(String orderSn) 
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn() 
    {
        return orderSn;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }
    public void setStartWork(Date startWork)
    {
        this.startWork = startWork;
    }

    public Date getStartWork()
    {
        return startWork;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("materId", getMaterId())
            .append("proId", getProId())
            .append("name", getName())
            .append("state", getState())
            .append("gbtNum", getGbtNum())
            .append("orderSn", getOrderSn())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
